﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace SX.Core.EventBus.Db.Entity
{
    /// <summary>
    /// MQ事件记录表
    /// </summary>
    [SugarTable("SysEventLog")]
    public class EventLogEntity
    {
        public EventLogEntity()
        {

        }
        [SugarColumn(IsPrimaryKey = true)]
        public string Id { get; set; }

        /// <summary>
        /// 事件状态
        /// </summary>
        public EventStateEnum State { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 消息体
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 所属模块
        /// </summary>
        public string Module { get; set; }
        /// <summary>
        /// 消息标记
        /// </summary>
        public string MessageMark { get; set; }

        /// <summary>
        /// 业务ID
        /// </summary>    
        public string BusinessId { get; set; }

    }
}
